<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册表</title>
</head>
<body>
<table border="1" id="tb">
    <tr>
        <th>用户ID</th>
        <th>用户名</th>
        <th>口令</th>
        <th>生日</th>
        <th>学历</th>
        <th>地区</th>
        <th>E-mail</th>
        <th>地址</th>
        <th>电话</th>
        <th>备注</th>
    </tr>
</table>
</body>
<script>
    var x = location.search;
    x = decodeURIComponent(x);
    console.log(x);
    var y = x.split("&");
    var id = y[0].split("=");
    var i = id[1];
    console.log(i);
    var n1 = y[1].split("=");
    var n = n1[1];
    var pwd = y[2].split("=");
    var p = pwd[1];
    var birth = y[3].split("=");
    var b = birth[1];
    var g1 = y[4].split("=");
    var g = g1[1];
    var area = y[5].split("=");
    var a = area[1];
    var email = y[6].split("=");
    var e = email[1];
    var address = y[7].split("=");
    var adr = address[1];
    var tel = y[8].split("=");
    var t = tel[1];
    var comment = y[9].split("=");
    var c = comment[1];
    var tb = document.getElementById("tb");
    var str = "<tr><td>" + i + "</td><td>" + n + "</td><td>"
        + p + "</td><td>" + b + "</td><td>" + g + "</td><td>"
        + a + "</td><td>" + e + "</td><td>" + adr + "</td><td>"
        + t + "</td><td>" + c + "</td></tr>";
    tb.innerHTML += str;


</script>
</html>